package com.ys.entity.sys;

import javax.persistence.Table;


import java.util.Date;

import com.ys.entity.base.BaseEntity;

/**
*/
@Table(name="lili_admin.`sys_role`", catalog="id")
public class SysRole extends BaseEntity<SysRole> {

	private Long id; // 主键ID
	private Long pid; // 上级ID
	private String name; // 角色名称
	private Integer status; // 
	private Date createTime; // 
	private Date updateTime; // 

	public Long getId() {
		return id;
	}
	public SysRole setId(Long id) {
		this.id = id;
		return this;
	}
	public Long getPid() {
		return pid;
	}
	public SysRole setPid(Long pid) {
		this.pid = pid;
		return this;
	}
	public String getName() {
		return name;
	}
	public SysRole setName(String name) {
		this.name = name;
		return this;
	}
	public Integer getStatus() {
		return status;
	}
	public SysRole setStatus(Integer status) {
		this.status = status;
		return this;
	}
	public Date getCreateTime() {
		return createTime;
	}
	public SysRole setCreateTime(Date createTime) {
		this.createTime = createTime;
		return this;
	}
	public Date getUpdateTime() {
		return updateTime;
	}
	public SysRole setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
		return this;
	}

	public static SysRole sysRole(
		Long pid,
		String name,
		Integer status
			) {
		SysRole entity = new SysRole();
		entity.setPid(pid);
		entity.setName(name);
		entity.setStatus(status);
		return entity;
	}
}